import request from '@/utils/request'

// 创建订单钱包
export function createAppOrderWalletDetail(data) {
  return request({
    url: '/pekingfish/app-order-wallet-detail/create',
    method: 'post',
    data: data
  })
}

// 更新订单钱包
export function updateAppOrderWalletDetail(data) {
  return request({
    url: '/pekingfish/app-order-wallet-detail/update',
    method: 'put',
    data: data
  })
}

// 删除订单钱包
export function deleteAppOrderWalletDetail(id) {
  return request({
    url: '/pekingfish/app-order-wallet-detail/delete?id=' + id,
    method: 'delete'
  })
}

// 获得订单钱包
export function getAppOrderWalletDetail(id) {
  return request({
    url: '/pekingfish/app-order-wallet-detail/get?id=' + id,
    method: 'get'
  })
}

// 获得订单钱包分页
export function getAppOrderWalletDetailPage(query) {
  return request({
    url: '/pekingfish/app-order-wallet-detail/page',
    method: 'get',
    params: query
  })
}

// 导出订单钱包 Excel
export function exportAppOrderWalletDetailExcel(query) {
  return request({
    url: '/pekingfish/app-order-wallet-detail/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
